Improve message for multiple links to native lib
authorLukas Lueg <lukas.lueg@gmail.com>
Wed, 20 Sep 2017 19:28:30 +0000 (21:28 +0200)
committerLukas Lueg <lukas.lueg@gmail.com>
Wed, 20 Sep 2017 19:33:24 +0000 (21:33 +0200)
commit180b448e0cda42e730ce5f8a0a03a67107969c75
tree0860024c2a17d061f20a2416e557b14e5bff7bcc
parent31dd4e37d819c7eeb13388f8d92165c93cef5e9b
Improve message for multiple links to native lib

If a native library is linked multiple times, present the user with a
clear error message, indicating the offending packages and their
dependency-chain.

Fixes #1006
src/cargo/core/resolver/mod.rs
src/cargo/ops/cargo_rustc/links.rs
src/cargo/ops/cargo_rustc/mod.rs
tests/build-script.rs